package exam.xiaozuduikang.exam2019;

import exam.xiaozuduikang._4thread_1;

import java.util.LinkedList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class _4thread {
    public static void main(String[] args) {
        ExecutorService fixedThreadPool = Executors.newFixedThreadPool(4);
        LinkedList<Integer> queue = new LinkedList<>();
        queue.add(1);
        queue.add(2);
        queue.add(3);
        queue.add(0);
        for (int i = 1; i <= 100; i++) {
            fixedThreadPool.execute(new ptintInt(queue, i));
        }

    }
}
